import 'package:flutter/material.dart';
import 'package:flutter_baselib/flutter_baselib.dart';

import 'loadview/load_empty_view.dart';
import 'loadview/load_error_view.dart';
import 'loadview/loading_view.dart';

class ResConfigImpl implements IResConfig {
  ///自定义http全局空白页
  @override
  Widget? configLoadEmptyView() {
    return const LoadEmptyView();
  }

  ///自定义http全局加载错误页
  @override
  Widget? configLoadErrorView() {
    return const LoadErrorView();
  }

  ///自定义http全局加载中的页面
  @override
  Widget? configLoadingView() {
    return const LoadingView();
  }

  ///配置全局分页加载起始页Index
  @override
  int configInitPageIndex() {
    return 0;
  }

  ///配置全局分页加载页size
  @override
  int configPageSize() {
    return 20;
  }
}
